package com.changfeng.service;

import com.changfeng.bean.RetailersUser;
import com.changfeng.bean.dto.vo.UserAccountUpdateVO;
import com.changfeng.bean.dto.vo.UserEmailModifyVO;
import com.changfeng.bean.dto.vo.UserHeadModifyVO;
import com.changfeng.bean.dto.vo.UserPasswordModifyVO;

public interface UserService {

    /**
     * 用户登陆
     * @param userName
     * @param password
     * @return
     */
    RetailersUser loginUser(String userName, String password);

    /**
     * 根据id获取用户
     * @param userId
     * @return
     */
    RetailersUser getUserByKey(Integer userId);

    /**
     * 用户注册
     * @param retailersUser
     * @return
     */
    Integer signUser(RetailersUser retailersUser);

    /**
     * 修改用户基本信息
     * @param accountUpdateVO
     * @return
     */
    RetailersUser updateUserByAccount(UserAccountUpdateVO accountUpdateVO);

    /**
     * 修改密码
     * @param userPasswordModifyVO
     * @return
     */
    Integer userPasswordModify(UserPasswordModifyVO userPasswordModifyVO);

    /**
     * 修改邮箱
     * @param userEmailModifyVO
     * @return
     */
    Integer userEmailModify(UserEmailModifyVO userEmailModifyVO);

    /**
     * 修改头像
     * @param userHeadModifyVO
     * @return
     */
    Integer userHeadModify(UserHeadModifyVO userHeadModifyVO);

}
